import request from '@/utils/request'

const api = {
	brand: '/api/car/getBrand',
	series: '/api/car/getSeries',
	model: '/api/car/getModel',
	modelDetail: '/api/car/getModelDetail',
	vin: '/api/car/getVin',
	car: '/api/car/getCarInfoByVin',
	color: '/api/car/getColor'
}

export function brandList(params){
	return request.get(api.brand, params)
}

export function seriesList(params){
	return request.get(api.series, params)
}

export function modelList(params){
	return request.get(api.model, params)
}

export function modelDetailCar(params){
	return request.get(api.modelDetail, params)
}

export function vinCar(params){
	return request.get(api.vin, params)
}

export function carInfo(params){
	return request.get(api.car, params)
}

export function colorList(params){
	return request.get(api.color, params)
}
